package com.zhang.serviceorder.remote;

import com.zhang.internalcommon.dto.ResponseResult;
import com.zhang.internalcommon.response.TerminalResponse;
import com.zhang.internalcommon.response.TrsearchResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-18
 */
@FeignClient("service-map")
public interface ServiceMapClient {
	@PostMapping("/terminal/aroundSearch")
	public ResponseResult<List<TerminalResponse>> aroundSearch(@RequestParam String center, @RequestParam Integer radius);

	@PostMapping("/terminal/trsearch")
	public ResponseResult<TrsearchResponse> trsearch(@RequestParam String tid,@RequestParam Long starttime,@RequestParam Long endtime);
}
